┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/doc/python3-file-magic
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: README.md
# `file-magic`: Python Bindings This library is a Python ctypes interface to `libmagic`. ## Installing You can install `file-magic` either with: python setup.py install # or easy_install . # or pip install file-magic ## Using import magic detected = magic.detect_from_filename('magic.py') print 'Detected MIME type: {}'.format(detected.mime_type) print 'Detected encoding: {}'.format(detected.encoding) print 'Detected file type name: {}'.format(detected.name) ## Developing/Contributing To run the tests: python setup.py test
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 example.py
PY
207 B
2021-02-23 00:49
EDIT
📄 README.md
MD
584 B
2021-02-23 00:49
EDIT